package com.front.managementfront.agreement.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yck
 * @since 2021-08-01
 */
@ApiModel(description = "合同协议")
public class HktsAgreement extends Model<HktsAgreement> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;
    /**
     * 协议名称
     */
    @ApiModelProperty(value = "合同协议名称")
    private String agreementName;
    /**
     * 协议内容
     */
    @ApiModelProperty(value = "协议内容")
    private String agreementContent;
    /**
     * 货物类别
     */

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    /**
     *
     */
    @ApiModelProperty(value = "上架状态")
    private String isShow;

    @ApiModelProperty(value = "排序字段")
    private Integer orderField;

    public Integer getOrderField() {
        return orderField;
    }

    public String getIsShow() {
        return isShow;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }

    public void setOrderField(Integer orderField) {
        this.orderField = orderField;
    }



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAgreementName() {
        return agreementName;
    }

    public void setAgreementName(String agreementName) {
        this.agreementName = agreementName;
    }

    public String getAgreementContent() {
        return agreementContent;
    }

    public void setAgreementContent(String agreementContent) {
        this.agreementContent = agreementContent;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public static final String ID = "id";

    public static final String AGREEMENT_NAME = "agreement_name";

    public static final String AGREEMENT_CONTENT = "agreement_content";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "HktsAgreement{" +
                ", id=" + id +
                ", agreementName=" + agreementName +
                ", agreementContent=" + agreementContent +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}
